package com.huluobo.lc.kotlinim1803a.contract.login

import com.huluobo.lc.kotlinim1803a.contract.BasePresenter

/**
 * @author Lc
 * @description: 登录的协议,包含View层和Presenter层
 * @date :2020/9/11 14:17
 */
interface LoginContract {
    //实现功能
    interface Presenter : BasePresenter {
        fun login(userName: String, password: String)
    }

    //UI反馈
    interface View {
        fun onUserNameError()//用户名输出错误
        fun onPasswordError()//用户密码输入错误
        fun onStartLogin()//开始登陆,为了显示进度条
        fun onLoggedInSuccess()//登录成功
        fun onLoggedInFailed()//登录失败
    }
}